package com.leo.foodmaster.admin.customer.mapper;

import org.apache.ibatis.annotations.Select;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.leo.foodmaster.admin.customer.dto.CustomerDeliveryTeamDTO;
import com.leo.foodmaster.admin.customer.entity.CustomerDeliveryTeamEntity;


/**
 * 客户配送小组
 *
 * @author Mark sunlightcs@gmail.com
 * @since 1.0.0 2021-11-20
 */
public interface CustomerDeliveryTeamMapper extends BaseMapper<CustomerDeliveryTeamEntity> {

		@Select("<script>"
			+ "SELECT a.* from customer_delivery_team a " +
			" " +
			" " +
			" "
			+ " where 1=1"+

//			" <if test=\"params.citycode != null and params.citycode.trim !='' \">" +
//	        " and a.citycode = #{params.citycode}" +
//	        " </if>" +

			" </script>")
	IPage<CustomerDeliveryTeamDTO> pageList(IPage<CustomerDeliveryTeamDTO> page,CustomerDeliveryTeamDTO customerDeliveryTeamDTO);


}
